import request from '@/utils/request'


export  const  download_file = (code)=>
	{
		let tokenId = sessionStorage.getItem('tokenId')
		/*本地测试地址*/ 
		window.location.href=process.env.BASE_API+'/op/fileupload/download_file?fileCode='+code+'&token='+tokenId
		/*发布测试地址*/
		// window.location.href='download_file?fileCode='+code+'&token='+tokenId
	}

// 上传文件
export const  uploadFile = (formData) =>
	request({
		url:'/op/fileupload/upload_file',
		method:'post',
		data:formData
	})